home *** CD-ROM | disk | FTP | other *** search
- Path: nntp.teleport.com!sschaem
- From: sschaem@teleport.com (Stephan Schaem)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: Demo/game to OS friendly part II
- Date: 6 Jan 1996 00:06:01 GMT
- Organization: Teleport - Portland's Public Access (503) 220-1016
- Message-ID: <4cked9$mjn@maureen.teleport.com>
- References: <38231819@kone.fipnet.fi> <4cgsn7$ke3@maureen.teleport.com> <38231852@kone.fipnet.fi>
- NNTP-Posting-Host: julie.teleport.com
- X-Newsreader: TIN [version 1.2 PL2]
-
- Jyrki Saarinen (jsaarinen@kone.fipnet.fi) wrote:
-
- : > Open the upcoming screen with the SA_Behind option... end after
- : > using ScreenToFront() close the old screen.
-
- : Ok. What is the fastest way to have triple buffering
- : on a Intuition screen? ScrollVPort()?
-
- I cant say yes.. but in therory it should be. It only has to refesh the
- the scroll registers and plane pointers in the copper list.
- I think the OS in 3.x is smart to keep track of the copper list entry and
- is efficient at updating it. (I never botherred to check) But I
- read that this function has been optmized to the point that its 10x faster
- then on previous OS version. (Not that this say much :)
-
- personaly I would expect to see something like this if it was
- really optimized :
-
- ScrollVPort:
- ... get OS private structure from viewport
- move.l (PRIVATE_Copper_Planes,a1),d0
- beq.b .Exit ; not visible
- movea.l d0,a1
- move.w (PRIVATE_Copper_PlanesCount,a1),d0
- lea (bm_Planes,a0),a0
- .. ml (a1)+,a2
- mw (a0)+,(a2)
- ml (a1)+,a2
- mw (a0)+,(a2)
- dbra d0,..
- .Exit
-
- Stephan
-